package io.renren.modules.mybog.service.impl;

import io.renren.modules.mybog.dao.UserDaos;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;


import io.renren.modules.mybog.entity.UserEntityS;
import io.renren.modules.mybog.service.UserServices;


@Service("userServices")
public class UserServicesImpl extends ServiceImpl<UserDaos, UserEntityS> implements UserServices {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<UserEntityS> page = this.page(
                new Query<UserEntityS>().getPage(params),
                new QueryWrapper<UserEntityS>()
        );

        return new PageUtils(page);
    }

}